<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$data['title']|default=''} {notempty name="$data['title']"} --- {/notempty} {$setting['site_name']|default=''}{$setting['title_add']|default=''}</title>
    <meta name="keywords" content="{$setting['keywords']|default=''}、{$data['keywords']|default=''}">
    <meta name="description" content="{$setting['description']|default=''}、{$data['description']|default=''}">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    {$setting['head_html']|default=''}
    <link rel="stylesheet" type="text/css" href="__TMPL__/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="__TEMPLATE__/static/css/style.css">
    <script type="text/javascript" src="__TMPL__/layui/layui.js"></script>

</head>
<body>
<!-- 头部 开始 -->
<div class="layui-header header trans_3">
    <div class="main index_main">
        <a class="logo" href="/"><img src="{if !empty($setting.logo)}{$setting.logo}{else /}__TEMPLATE__/static/images/logo-header.png{/if}" alt=""></a>
        <ul class="layui-nav" lay-filter="top_nav">
            <li class="layui-nav-item home"><a href="/">首页</a></li>
            <!--导航-->
            {notempty name="$category"}
                {volist name="$category" id="vo"}
                    <li class="layui-nav-item">
                        <a {if condition="!empty($vo['child'])"} href="javascript:void(0)" {else /} href="{$vo.url}" {/if} {if condition="$vo['model_id'] eq 4"} target='_blank'{/if}>{$vo.name}</a>
                        {notempty name="$vo['child']"}
                            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                                {volist name="$vo['child']" id="v"}
                                <dd><a href="{$v.url}">{$v.name}</a></dd>
                                {/volist}
                            </dl>
                        {/notempty}
                    </li>
                {/volist}
            {/notempty}
            <!--导航结束-->
        </ul>
        <div class="title">{$setting.site_name|default=''}</div>
        <form action="{:url('index/search/search')}" mothod="post" class="head_search trans_3 layui-form">
            <div class="layui-form-item trans_3">
                <span class="close trans_3"><i class="layui-icon">&#x1006;</i> </span>
                <div class="layui-input-inline trans_3">
                    <select name="model_id">
                        {notempty name="$setting['search_model']"}
                            {volist name="$setting['search_model']" id="vo"}
                                <option value="{$vo['id']}" {if condition="$vo['id'] == 2" } selected {/if}>{$vo['name']}</option>
                            {/volist}
                        {/notempty}

                    </select>
                </div>
                <input type="text" name="keywords" placeholder="搜索" autocomplete="off" class="search_input trans_3">
                <button class="layui-btn" lay-submit="" style="display: none;"></button>
            </div>

        </form>
    </div>
</div>
<div class="header_back"></div>
<!-- 头部 结束 -->
<!-- 左边导航 开始 -->
<div class="layui-side layui-bg-black left_nav trans_2">
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree" lay-filter="left_nav">
            <li class="layui-nav-item home"><a href="/">首页</a></li>
            <!--导航-->
            {notempty name="$category"}
            {volist name="$category" id="vo"}
            <li class="layui-nav-item">
                <a {if condition="!empty($vo['child'])"} href="javascript:void(0)" {else /} href="{$vo.url}" {/if}>{$vo.name}</a>
                {notempty name="$vo['child']"}
                <dl class="layui-nav-child"> <!-- 二级菜单 -->
                    {volist name="$vo['child']" id="v"}
                    <dd><a href="{$v.url}">{$v.name}</a></dd>
                    {/volist}
                </dl>
                {/notempty}
            </li>
            {/volist}
            {/notempty}
            <!--导航结束-->

        </ul>
    </div>
</div>
<div class="left_nav_mask"></div>
<div class="left_nav_btn"><i class="layui-icon">&#xe602;</i></div>
<!-- 左边导航 结束 -->